<%@ page import="com.raise.drive.model.domain.Instructor" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jspf/include.jspf" %>

<%--@elvariable id="doctors" type="java.util.List<net.xitex.dentist.domain.Doctor>"--%>
<%--@elvariable id="dateFormat" type="java.lang.String"--%>

<tiles:insertDefinition name=".base">

    <tiles:putAttribute name="pageTitle">
        <fmt:message key="page.fillPersonalInfo.title"/>
    </tiles:putAttribute>

    <tiles:putAttribute name="javascript">
        <script type="text/javascript">
            // <![CDATA[


            // ]]>
        </script>
    </tiles:putAttribute>

    <tiles:putAttribute name="menu">
        <%@ include file="/WEB-INF/jspf/anonymousMenu.jspf" %>
    </tiles:putAttribute>

    <tiles:putAttribute name="body">

        <p>
            <fmt:message key="page.fillPersonalInfo.description"/>
        </p>

        <form:form commandName="instructorForm">

            <table>
                <tr>
                    <td>
                        <fmt:message key="entity.instructor.name"/><tags:required/>
                    </td>
                    <td>
                        <form:input path="instructor.name"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="entity.instructor.surname"/><tags:required/>
                    </td>
                    <td>
                        <form:input path="instructor.surname"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="entity.instructor.patronymic"/>
                    </td>
                    <td>
                        <form:input path="instructor.patronymic"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="entity.instructor.sex"/><tags:required/>
                    </td>
                    <td>
                        <form:radiobutton path="instructor.sex" value="<%=Instructor.Sex.MALE%>"/><fmt:message
                            key="entity.instructor.sex.MALE"/><br/>
                        <form:radiobutton path="instructor.sex" value="<%=Instructor.Sex.FEMALE%>"/><fmt:message
                            key="entity.instructor.sex.FEMALE"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="entity.instructor.sinceYear"/><tags:required/>
                    </td>
                    <td>
                        <form:select path="instructor.sinceYear">
                            <c:forEach begin="1980" end="2009" step="1" varStatus="varStatus">
                                <form:option value="${varStatus.current}">${varStatus.current}</form:option>
                            </c:forEach>
                        </form:select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="entity.instructor.shortDescription"/><tags:required/>
                    </td>
                    <td>
                        <spring:bind path="instructorForm.instructor.shortDescription">
                            <textarea rows="5" cols="25" name="${status.expression}">${status.value}</textarea>
                        </spring:bind>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="entity.instructor.description"/><tags:required/>
                    </td>
                    <td>
                        <spring:bind path="instructorForm.instructor.description">
                            <textarea rows="5" cols="25" name="${status.expression}">${status.value}</textarea>
                        </spring:bind>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <tags:submit key="common.next" name="_target1"/>
                        <tags:submit key="common.cancel" name="_cancel"/>
                    </td>
                    <td>

                    </td>
                </tr>

            </table>

        </form:form>

    </tiles:putAttribute>

</tiles:insertDefinition>
